package com.mxf.code.entity.node;

import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author mxf
 * @version 1.0
 * @description: 节点基础属性
 * @date 2023/5/10
 */
@Data
@Node(labels = {"实体"})
public class EntityBaseNode implements Serializable {
    @Id
    @GeneratedValue
    private Long id;

    @CreatedDate
    private LocalDateTime createDate;
    @LastModifiedDate
    private LocalDateTime updateDate;
    @CreatedBy
    private Long creator;
    @LastModifiedBy
    private Long updater;
}
